package com.wbhz.entity;

import java.util.Date;

public class Message {
	private int msgId;// int not null primary key AUTO_INCREMENT,
	private int msgFromUserId;// int,
	private int msgByUserId;// int,
	private String msgName;// VARCHAR(20) not null,
	private String msgContent;// VARCHAR(50),
	private String msgStatus;// enum('未阅读', '已阅读') not null default'未阅读',	-- 1:未阅读 2:已阅读
	private Date msgCreateTime;// date
	public int getMsgId() {
		return msgId;
	}
	public void setMsgId(int msgId) {
		this.msgId = msgId;
	}
	public int getMsgFromUserId() {
		return msgFromUserId;
	}
	public void setMsgFromUserId(int msgFromUserId) {
		this.msgFromUserId = msgFromUserId;
	}
	public int getMsgByUserId() {
		return msgByUserId;
	}
	public void setMsgByUserId(int msgByUserId) {
		this.msgByUserId = msgByUserId;
	}
	public String getMsgName() {
		return msgName;
	}
	public void setMsgName(String msgName) {
		this.msgName = msgName;
	}
	public String getMsgContent() {
		return msgContent;
	}
	public void setMsgContent(String msgContent) {
		this.msgContent = msgContent;
	}
	public String getMsgStatus() {
		return msgStatus;
	}
	public void setMsgStatus(String msgStatus) {
		this.msgStatus = msgStatus;
	}
	public Date getMsgCreateTime() {
		return msgCreateTime;
	}
	public void setMsgCreateTime(Date msgCreateTime) {
		this.msgCreateTime = msgCreateTime;
	}
	@Override
	public String toString() {
		return "Message [msgId=" + msgId + ", msgFromUserId=" + msgFromUserId + ", msgByUserId=" + msgByUserId
				+ ", msgName=" + msgName + ", msgContent=" + msgContent + ", msgStatus=" + msgStatus
				+ ", msgCreateTime=" + msgCreateTime + "]";
	}
	public Message(int msgId, int msgFromUserId, int msgByUserId, String msgName, String msgContent, String msgStatus,
			Date msgCreateTime) {
		super();
		this.msgId = msgId;
		this.msgFromUserId = msgFromUserId;
		this.msgByUserId = msgByUserId;
		this.msgName = msgName;
		this.msgContent = msgContent;
		this.msgStatus = msgStatus;
		this.msgCreateTime = msgCreateTime;
	}
	public Message() {
		super();
		// TODO Auto-generated constructor stub
	}
	
}
